package com.ruoyi.payments.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.payments.mapper.TbPaymentsMapper;
import com.ruoyi.payments.domain.TbPayments;
import com.ruoyi.payments.service.ITbPaymentsService;

/**
 * 支付管理Service业务层处理
 * 
 * @author txt
 * @date 2025-02-05
 */
@Service
public class TbPaymentsServiceImpl implements ITbPaymentsService 
{
    @Autowired
    private TbPaymentsMapper tbPaymentsMapper;

    /**
     * 查询支付管理
     * 
     * @param paymentId 支付管理主键
     * @return 支付管理
     */
    @Override
    public TbPayments selectTbPaymentsByPaymentId(Long paymentId)
    {
        return tbPaymentsMapper.selectTbPaymentsByPaymentId(paymentId);
    }

    /**
     * 查询支付管理列表
     * 
     * @param tbPayments 支付管理
     * @return 支付管理
     */
    @Override
    public List<TbPayments> selectTbPaymentsList(TbPayments tbPayments)
    {
        return tbPaymentsMapper.selectTbPaymentsList(tbPayments);
    }

    /**
     * 新增支付管理
     * 
     * @param tbPayments 支付管理
     * @return 结果
     */
    @Override
    public int insertTbPayments(TbPayments tbPayments)
    {
        return tbPaymentsMapper.insertTbPayments(tbPayments);
    }

    /**
     * 修改支付管理
     * 
     * @param tbPayments 支付管理
     * @return 结果
     */
    @Override
    public int updateTbPayments(TbPayments tbPayments)
    {
        return tbPaymentsMapper.updateTbPayments(tbPayments);
    }

    /**
     * 批量删除支付管理
     * 
     * @param paymentIds 需要删除的支付管理主键
     * @return 结果
     */
    @Override
    public int deleteTbPaymentsByPaymentIds(Long[] paymentIds)
    {
        return tbPaymentsMapper.deleteTbPaymentsByPaymentIds(paymentIds);
    }

    /**
     * 删除支付管理信息
     * 
     * @param paymentId 支付管理主键
     * @return 结果
     */
    @Override
    public int deleteTbPaymentsByPaymentId(Long paymentId)
    {
        return tbPaymentsMapper.deleteTbPaymentsByPaymentId(paymentId);
    }
}
